package com.ruoyi.am.domain;

public class AmCarLocation {

    private String driver_id;
    private String car_num;
    private double lat;
    private double lng;
    private boolean is_busy;

    public AmCarLocation() {
    }

    public AmCarLocation(String driver_id, String car_num, double lat, double lng, boolean is_busy) {
        this.driver_id = driver_id;
        this.car_num = car_num;
        this.lat = lat;
        this.lng = lng;
        this.is_busy = is_busy;
    }

    public boolean isIs_busy() {
        return is_busy;
    }

    public void setIs_busy(boolean is_busy) {
        this.is_busy = is_busy;
    }

    public String getDriver_id() {
        return driver_id;
    }

    public void setDriver_id(String driver_id) {
        this.driver_id = driver_id;
    }

    public String getCar_num() {
        return car_num;
    }

    public void setCar_num(String car_num) {
        this.car_num = car_num;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    @Override
    public boolean equals(Object obj) {
        if(this == obj) {
            return true;
        }
        if(null == obj) {
            return false;
        }
        if(getClass() != obj.getClass()) {
            return false;
        }

        AmCarLocation amCarLocation = (AmCarLocation)obj;
        return amCarLocation.getCar_num().equals(this.getCar_num());
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
